﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using AutoBackupDatabase.DAL;
using System.Data;
using AutoBackupDatabase.ENT;

namespace AutoBackupDatabase.BLL
{
    class TABLEBLL
    {
        private TABLEDAL tableDAL;
        public TABLEBLL()
       {
           tableDAL = new TABLEDAL();
       }

       public List<TABLEENT> GET_TABLE_ALL()
       {
         
           return tableDAL.GET_TABLE_ALL();

       }
       public bool INSERTTABLE(TABLEENT ent)
       {

           return tableDAL.INSERTTABLE(ent);

       }
       public bool UPDATETABLEBYTABLEID(TABLEENT ent)
       {

           return tableDAL.UPDATETABLEBYTABLEID(ent);

       }
       public bool DELTELEAREABYAREAID(TABLEENT ent)
       {

           return tableDAL.DELTELEAREABYAREAID(ent);

       }

       public List<TABLEENT> GETTABLEHAVEGUESTBYAREAID(string AREAID)
       {

           return tableDAL.GETTABLEHAVEGUESTBYAREAID(AREAID);

       }

       public List<TABLEENT> GETTABLENOTHAVEGUESTBYAREAID(string AREAID)
       {

           return tableDAL.GETTABLENOTHAVEGUESTBYAREAID(AREAID);

       }

    }
}
